{% extends "base.html" %}

{% block content %}
{% if ideas %}
<h1>Ideas related to {{ tag }}</h1>
<div id="resultslist-wrap">
	<ol>
{% for idea in ideas %}

	<li>
		<dl>
		<dt><a href="/ideas/{{ idea.title }}">{{ idea.title }}</a> by {{ idea.author }}</dt>
		<dd class="tags">Tags: {{ idea.tags }}</dd>
		<dd class="date">Published : {{ idea.pub_date }}</dd>
		<dd class="date">Modified : {{ idea.change_date }}</dd>
		</dl>
	</li>
{% endfor %}
	</ol>
</div>
{% endif %}
{% endblock %}